
const state = () => ({
    tabList: [{ name: '测试' }, { name: '测试' }, { name: '测试' }, { name: '测试' },]
})
const getters = {
}

const mutations = {
    tabAdd(state, data) {
        let have = state.tabList.some(item => item.name == data.name)
        if (!have) {
            state.tabList.push(data)
        }
    },
}
const actions = {

}
export default { state, getters, mutations, actions }